<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title><?php echo $title;?> </title>
	<link rel="stylesheet" href="../../public/icon/demo.css">
	<link rel="stylesheet" href="../../public/icon/iconfont.css">
	<script src="../../public/icon/iconfont.js"></script>
	<link rel="stylesheet" href="../../public/plugin/layui/css/layui.css">
	<style>
		h2{
			color:#3c763d;
			font-size:20px;
			font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
		}
		.breadcrumb{
			background-color:#f5f5f5;
			border-radius:4px;
			padding:8px 15px;
			margin-bottom:20px;
			line-height:39px;
			height:39px;
		}
		.breadcrumb a{
			text-decoration:none;
			color:#06c;
		}
		.cl p{
			margin-top:10px;
			font-size:16px;
		}
	</style>
</head>
<body>
<section class="Hui-article-box">
	<nav class="breadcrumb"><span class="iconfont icon-shouye-tianchong"></span> <a href="http://www.mslx.com/design" target="_blank" class="maincolor">首页</a> 
		<span class="c-999 en">&gt;</span>
		<span class="c-666">运行环境</span>
		<a style="line-height:1.6em;margin-top:3px;float:right;" href="javascript:location.replace(location.href);" title="刷新" ><span class="iconfont icon-zhongzhi"></span>刷新</a>
	</nav>
	<div class="Hui-article">
		<article class="cl">
			<h2>题库管理中心,作者:沐水莲心</h2>
			<p>登录次数：<?php echo $row['count'];?></p>
			<p>上次登录IP：<?php echo $row['login_ip'];?>  上次登录时间：<?php date_default_timezone_set("Asia/Shanghai"); echo date('Y-m-d H:i:s',$row['login_time']);?></p>
			
			<div class="layui-form">
			<table class="layui-table">
				<thead>
					<tr>
						<th colspan="2" scope="col">服务器信息</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<th width="30%">服务器计算机名</th>
						<td><span id="lbServerName"><?php echo $_SERVER['SERVER_ADMIN'];?></span></td>
					</tr>
					<tr>
						<td>服务器IP地址</td>
						<td><?php echo $_SERVER['SERVER_ADDR'];?></td>
					</tr>
					<tr>
						<td>服务器域名</td>
						<td><?php echo $_SERVER['SERVER_NAME'];?></td>
					</tr>
					<tr>
						<td>当前PHP版本 </td>
						<td><?php echo PHP_VERSION;?></td>
					</tr>

					<tr>
						<td>服务器版本 </td>
						<td><?php echo PHP_OS;?></td>
					</tr>
					<tr>
						<td>当前请求URL</td>
						<!--传入参数true,显示包括域名的完整绝对URL请求地址-->
						<td><?php echo $_SERVER['HTTP_REFERER'];?></td>
					</tr>

					<tr>
						<td>当前Session数量 </td>
						<!--这里用原生$_SESSION,TP5无对应方法-->
						<td><?php session_start(); echo count($_SESSION);?></td>
					</tr>
					<tr>
						<td>当前SessionID </td>
						<!--执行原生session_id()方法,因为tp5无对应请求方法-->
						<td><?php echo session_id();?></td>
					</tr>

		</tbody>
	</table>
	</div>
</article>
</div>
</section>
</body>
</html>